package com.example.taluo.logic;

import com.example.taluo.entity.dto.gamedto.Card;
import com.example.taluo.entity.dto.gamedto.PlayerState;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/18 16:58

 * @Version 1.0*/
public class CardEffectProcessor {
    public void applyCardEffects(Card card, PlayerState player, PlayerState opponent) {
        switch (card.getName()) {
            case "Fireball":
                opponent.setLife(opponent.getLife() - card.getDamage());
                break;
            case "Heal":
                opponent.setLife(opponent.getLife() + card.getDamage());
                break;
            // 其他卡牌效果
            default:
                System.out.println("Unknown card effect: " + card.getName());
        }
    }
}
